<template>
  <section class="pay">
    <ul class="servicer-list">
        <li v-for="i in list" :key="i.id">
          <div class="servicer-item">
            <h2 class="title">{{i.name}}</h2>
            <div>
              <img :src="i.code" alt="">
            </div>
            <p class="tip">订单号：252362</p>
            <p class="tip">转账时请备注订单号</p>
          </div>
        </li>
      </ul>
    <div class="btn-box">
      <x-button :gradients="buttonColor" @click.native="doNext">确认支付</x-button>
    </div>
  </section>
</template>

<script>
  import {XInput, Group, XButton} from 'vux'

  export default {
    name: 'ServiceCenter',
    components: {
      XInput,
      Group,
      XButton
    },
    data () {
      return {
        buttonColor: ['#1D62F0', '#19D5FD'],
        list: [
          {id: 1, name: '云网收款码', code: 'https://o5omsejde.qnssl.com/demo/test1.jpg'}
        ]
      }
    },
    methods: {
      doNext () {
        this.$router.push({path: '/paythird'})
      }
    }
  }
</script>

<style lang="less" scoped>
  .pay {
    padding: 15px 0;
    height: 100%;
    background-color: #fff;
    box-sizing: border-box;
    .servicer-item {
      text-align: center;
      padding: 15px;
      background-color: #fff;
      img {
        width: 250px;
        height: 250px;
      }
      .title {
        margin-bottom: 15px;
      }
      .tip {
        color: #898989;
      }
    }
    .btn-box {
      position: fixed;
      bottom: 0;
      width: 100%;
      padding: 15px;
      box-sizing: border-box;
    }
  }
</style>
